/**
 * 
 */
package instant.openvfs.home.event;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * @author qiangli
 *
 */

public class UninstallShortcutReceiver extends BroadcastReceiver {
    private static final String ACTION_UNINSTALL_SHORTCUT =
            "com.android.launcher.action.UNINSTALL_SHORTCUT";

    public void onReceive(Context context, Intent data) {
        if (!ACTION_UNINSTALL_SHORTCUT.equals(data.getAction())) {
            return;
        }
        Intent intent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT);
        String name = data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME);

        if (intent != null && name != null) {
           //
        }
    }
}

